package com.icepuppet.controller;

import com.icepuppet.demo.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JsonController {
    @RequestMapping("/userJson")
    public String userJson(@RequestBody User user){
        System.out.println(user);
        return "OK";
    }
}
